


public class Main {

    public static void main(String[] args) {
        
        Avl<EventPoint> eq = new Avl<EventPoint>();
        eq.insert(new EventPoint(new Point(0, 0)));
        eq.insert(new EventPoint(new Point(-1, 0)));
        eq.insert(new EventPoint(new Point(-2, 0)));
        eq.insert(new EventPoint(new Point(2, 1)));
        eq.insert(new EventPoint(new Point(-1, 2)));
        eq.insert(new EventPoint(new Point(1, 0)));
        //Mes tests
        /*EventPoint test = eq.getSuccessor((EventPoint)eq.root.data);
        System.out.println("Root " + ((EventPoint)eq.root.data).point.toString());
        System.out.println("Succ " + (test == null));

        EventPoint test2 = eq.getPredecessor((EventPoint) eq.root.data);
        System.out.println("Pred " + (test2 == null));
        Point testp1 = test2.point;
        Point testp2 = (Point)test2.point.clone();
        System.out.println("tesstp1 == test2.point ? " + (testp1 == test2.point));
        System.out.println("test2.point.clone == testp2 ? " + (testp2 == test2.point));
        System.out.println("test2.point.clone equals testp2 ? " + (testp2.equals(test2.point)));/**/

        //eq.insert(new EventPoint(new Point(0,1)));
        //eq.insert(new EventPoint(new Point(-2,-2)));
        //eq.insert(new EventPoint(new Point(-2,-2)));
    }
}
